<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri='http://java.sun.com/portlet' prefix='portlet'%>
<%@ page import="javax.portlet.*"%>
<%@ page import="java.util.*"%>
<%@ page import="com.x4ee.soa.portal.framework.tools.ConfigUtils"%>
<%@ page import="cn.com.chinasoa.cms.portlet.action.*"%>

<%String contextPath = request.getContextPath();%>
<portlet:defineObjects />
<form method='post' action='<portlet:actionURL><portlet:param name="frameworkUri" value="outletCreateAction"/></portlet:actionURL>'>
	<table border="0" cellspacing="0" cellpadding="0">
  <tr height="30">
    <th height="40" align="left"  colspan="1"><img src="<%=contextPath%><%=ConfigUtils.getResourceBasePath(renderRequest)%>/image/outlet.gif"/></th>
  </tr>	
	  <tr class="tr-light">
	    <td align="left">名称:<input name="outletName" type="text" size="10" class="textfield"/></td>
	  </tr>
	  <tr class="tr-light">	
	  <td>    
	    地址:
    	<select name="uriName">
	    <%Object uriMapObj = renderRequest.getPortletSession().getAttribute(FrameworkConfigWraper.FRAMEWORK_URI_MAP);
	    if((uriMapObj!=null)&&(uriMapObj instanceof Map)){
	    	Map uriMap = (Map)uriMapObj;
	    	Set uriSet = uriMap.keySet();
	    	for(Iterator uriIt = uriSet.iterator();uriIt.hasNext();){
	    		Object uriObj = uriIt.next();
	    		if((uriObj!=null)&&(uriObj instanceof String)){
	    			String uriValue = (String)uriObj;
	    			%><option value="<%=uriValue%>"><%=uriValue%></option><%	    			
	    		}
	    	}}%>
	    	</select><input name="submitOutletCreate" type="submit" value="创建"/></td>
	  </tr>	  
	  <tr class="tr-light">
	    <td height="40" colspan="1">
	    	<a href="<portlet:renderURL portletMode="EDIT"><portlet:param name="frameworkUri" value="URITable"/></portlet:renderURL>">[URITable]</a>
	    	<a href="<portlet:renderURL portletMode="EDIT"><portlet:param name="frameworkUri" value="OutletTable"/></portlet:renderURL>">[OutletTable]</a>
	    	<a href="<portlet:renderURL portletMode="EDIT"><portlet:param name="frameworkUri" value="URICreate"/></portlet:renderURL>">[URICreate]</a>
			<a href="<portlet:renderURL portletMode="EDIT"><portlet:param name="frameworkUri" value="OutletCreate"/></portlet:renderURL>">[OutletCreate]</a>    	
	    </td>
	  </tr>
	</table>
</form>
